const state = {
  isLoading: false, // loading全局开关
  balance: localStorage.getItem("fn_m_balance")
    ? JSON.parse(localStorage.getItem("fn_m_balance"))
    : {
        archBalance: 0,
        coinSum: 0,
        isVip: 0,
        endTime: null,
        isNew: 0,
      }, //账户余额
  userInfo:
    null || localStorage.getItem("fn_m_userInfo")
      ? JSON.parse(localStorage.getItem("fn_m_userInfo"))
      : null, //当前用户信息
  showPopup: false, //是否显示Popup
  currentPopup: "login", //当前Popup
  downloadTip: "default", //当前下载提示
};

export default state;
